package com.suray.wcs.web.system.controller;


import com.suray.commin.annotation.Log;
import com.suray.commin.core.controller.BaseController;
import com.suray.commin.core.controller.ResponseData;
import com.suray.commin.core.page.TableDataInfo;
import com.suray.commin.core.utils.SecurityUtils;
import com.suray.commin.enmus.BusinessType;
import com.suray.wcs.service.init.SystemInit;
import com.suray.wcs.service.system.entity.TaskDetailDB;
import com.suray.wcs.service.system.entity.WmsUrlDB;
import com.suray.wcs.service.system.service.TaskDetailService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.List;

@RestController
@RequestMapping("/taskDetail")
@CrossOrigin(value = "*", allowCredentials = "true")
public class TaskDetailDBController extends BaseController {
    @Autowired
    private TaskDetailService taskDetailService;

    /**
     * 分页查询
     *
     * @return
     */
    @PreAuthorize("@ss.hasPermi('taskDetail:query')")
    @ApiOperation(value = "分页查询")
    @GetMapping(value = "/queryTaskDetail")
    public TableDataInfo getPortList(Integer taskId) {
        startPage();
        List<TaskDetailDB> result = taskDetailService.queryByTaskId(taskId);
        return getDataTable(result);
    }

}
